<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script>
function boom()
{
  document.getElementById("tr").focus();
  document.getElementById("b").focus();
  document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="setTimeout(boom, 30);">

<table border="1">
  <tbody dir="rtl">
    <tr id="tr" contenteditable="true"><td>a</td><td contenteditable="false">
      <div id="b" contenteditable="true">b</div>
    </td></tr>
  </tbody>
</table>

</body>
</html>
